package com.easycms.service.impl;

import java.util.HashMap;
import java.util.Map;

import org.springframework.stereotype.Service;

import com.easycms.base.AbstractBaseDao;
import com.easycms.common.Pager;
import com.easycms.entity.CmsUserAlbum;
import com.easycms.service.CmsUserAlbumService;

@Service
public class CmsUserAlbumServiceImpl extends AbstractBaseDao<CmsUserAlbum, Integer> implements CmsUserAlbumService{

	@Override
	public Pager<CmsUserAlbum> findByKey(Integer userID, int showPages, int pageSize) {
		String operate = ".findAlbumByKey";
		Map<String, Object> maps = new HashMap<String, Object>();
		maps.put("showPages", showPages);
		maps.put("pageSize", pageSize);
		maps.put("userID", userID);
		return findByKey(maps, operate);
	}

	@Override
	public Pager<CmsUserAlbum> findAllByPage(int showPages, int pageSize) {
		return findByPage(showPages, pageSize);
	}
}
